﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;

namespace WorkflowEngine
{
    public enum WorkflowInstanceStatus
    {
  
        /// <summary>
        /// 草稿
        /// </summary>
        Draft=1,
        
        /// <summary>
        /// 进行中
        /// </summary>
        Doing=2,

        /// <summary>
        /// 完成
        /// </summary>
        Complate=3,

        /// <summary>
        /// 作废
        /// </summary>
        Invalid=99

    }

    public enum ObjectType
    { 
        User,
        Org
    }
    public enum Visiable
    {
        /// <summary>
        /// 全局可见
        /// </summary>
        Public = 1,
        /// <summary>
        ///租户企业内部可见
        /// </summary>
        Internal = 2,


    }

    /// <summary>
    /// 应用类型
    /// </summary>
    public enum AppType
    {
        /// <summary>
        /// 系统应用
        /// </summary>
        System=1,
        /// <summary>
        /// 第三方应用
        /// </summary>
        Third=2,
        /// <summary>
        /// 租户企业内部应用
        /// </summary>
        Internal = 3,

    }

    /// <summary>
    /// 表单类型
    /// </summary>
    public enum FormType
    { 
        /// <summary>
        /// 自定义表单审批
        /// </summary>
        Custom=1,
        /// <summary>
        /// 智能表单审批
        /// </summary>
        Smart,
        /// <summary>
        /// 非审批表单，填写完成不发起流程
        /// </summary>
        None
    }


    public enum ActivityStatus
    { 
        /// <summary>
        /// 等着聚合
        /// </summary>
        Await=1,
        /// <summary>
        /// 正在聚合中
        /// </summary>
        Joining=2,
        /// <summary>
        ///聚合完成
        /// </summary>
        Complate = 3,
        Invalid = 99
    }

    public enum TaskStatus
    {
        /// <summary>
        /// 未读
        /// </summary>
        UnRead=1,
        /// <summary>
        /// 已读
        /// </summary>
        Readed=2,
        /// <summary>
        /// 处理完成
        /// </summary>
        Complate = 3,
        Invalid = 99
    }

    /// <summary>
    /// 任务操作状态
    /// </summary>
    public enum HandleStatus
    {
        /// <summary>
        /// 撤回
        /// </summary>
        Withdraw=2,
        /// <summary>
        /// 常规操作
        /// </summary>
        Normal=1,
        /// <summary>
        /// 加签
        /// </summary>
        Append=3,
        /// <summary>
        /// 转交
        /// </summary>
        Transfer=4,
        /// <summary>
        /// 传阅
        /// </summary>
        Circulated=5

    }

    /// <summary>
    ///流程级别程度
    /// </summary>
    public enum LevelType
    {
        /// <summary>
        /// 一般
        /// </summary>
        Normal = 1,
        /// <summary>
        /// 重要
        /// </summary>
        Important = 2,
        /// <summary>
        /// 紧急
        /// </summary>
        Urgency = 3,
        /// <summary>
        /// 十分紧急
        /// </summary>
        Urgent

    }


}
